﻿@model Project.Models.contacto

@{
    ViewBag.Title = "EditContacto";
    Layout = "~/Views/Shared/_LayoutPublicaciones.cshtml";
}

<h2>EditContacto</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

 @using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
  
            <table style="width: 100%;">
        <tr>
            <td>    @Html.LabelFor(model => model.nombre, "Nombre de Contacto:")</td>
            <td>  @Html.EditorFor(model => model.nombre)
            @Html.ValidationMessageFor(model => model.nombre)</td>
            <td> @Html.LabelFor(model => model.telefono, "Telefono:")</td>
            <td>  @Html.EditorFor(model => model.telefono)
            @Html.ValidationMessageFor(model => model.telefono)</td>
        </tr>
        <tr>
            <td>   @Html.LabelFor(model => model.celular, "Celular:")</td>
            <td>  @Html.EditorFor(model => model.celular)
            @Html.ValidationMessageFor(model => model.celular)</td>
            <td>@Html.LabelFor(model => model.fax, "Fax:")</td>
            <td> @Html.EditorFor(model => model.fax)
            @Html.ValidationMessageFor(model => model.fax)</td>
        </tr>
        <tr>
            <td>  @Html.LabelFor(model => model.email, "Email:")</td>
            <td>  @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)</td>
            <td> @Html.LabelFor(model => model.company, "Nombre de la Compañia:")</td>
            <td>  @Html.EditorFor(model => model.company)
            @Html.ValidationMessageFor(model => model.company)</td>
        </tr>
 <tr> 
     <td> @Html.LabelFor(model => model.direccion, "Direccion:")</td>
    
 </tr>
                <tr> <td> @Html.TextAreaFor(model => model.direccion)
            @Html.ValidationMessageFor(model => model.direccion)</td></tr>

                
    </table>

                <p>
            <input type="submit" value="Actualizar" />
        </p>
}

 

<div>
    @Html.ActionLink("Volver", "AgregarContactos","Propiedades")
</div>
